Skip to content

Conversation

@jiekun
Copy link
Member

@jiekun jiekun commented Oct 6, 2025

Describe Your Changes

For cluster mode, distribute data by trace ID instead of full random.

This feature will make the spans of the same trace go to the same vtstorage instance.

goos: darwin
goarch: arm64
pkg: github.com/VictoriaMetrics/VictoriaTraces/app/vtstorage/netinsert
cpu: Apple M1 Pro
BenchmarkGetNodeIdx
BenchmarkGetNodeIdx-8      	12863986	        93.03 ns/op	       0 B/op	       0 allocs/op
BenchmarkGetNodeIdxBak
BenchmarkGetNodeIdxBak-8   	11386562	       106.3 ns/op	       0 B/op	       0 allocs/op

A simple benchmark with 15k ingestion rate to each vtinsert:

image

Checklist

The following checks are mandatory:

@jiekun jiekun merged commit 003eb7d into master Oct 13, 2025
8 checks passed
@jiekun jiekun deleted the feature/traceid-distribution branch October 13, 2025 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant